package com.qianfeng.zhangwei.fruitday.fragment;


import android.view.View;
import android.widget.GridView;
import android.widget.ListView;

import com.gc.flashview.FlashView;
import com.lidroid.xutils.HttpUtils;
import com.qianfeng.zhangwei.fruitday.R;
import com.qianfeng.zhangwei.fruitday.adapter.HomeBannerAdapter;
import com.qianfeng.zhangwei.fruitday.bean.Banner;

import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

import java.util.ArrayList;
import java.util.List;

/**
 *
 */
@EFragment(R.layout.fragment_home)
public class HomeFragment extends BaseFragment {
    private HttpUtils utils = new HttpUtils();
    @ViewById(R.id.common_listview)
    ListView listView;
    private List<Banner> banners = new ArrayList<>();

    private HomeBannerAdapter adapter;

    /**
     *
     */
    @Override
    public void initView() {
        adapter = new HomeBannerAdapter(banners, getActivity());
        listView.setAdapter(adapter);
    }


    @Override
    public void initData() {

    }

    /**
     *
     */
    private class HeadView {

        private View view;

        /**
         * 广告栏
         */
        private FlashView flashView;
        /**
         * 分类信息
         */
        private GridView cateGridView;

        /**
         * topBanner
         */
        private ListView listView;

    }


}
